package com.godme.jvm;

import java.util.ArrayList;


// -Xms -Xmx
public class Heap {

    static class OOMObject{
        private long[] arr = new long[1024 * 1024 * 10 *10];
    }

    public static void main(String[] args) {
        ArrayList<Object> objects = new ArrayList<>();
        while (true){
            objects.add(new OOMObject());
        }
    }
}
